<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>A页面</title>
	</head>
	<body>
		<button type="button" onclick="goB()">前往B页面</button>
		<button type="button" onclick="shuax()">刷新页面</button>
	</body>
	<script type="text/javascript">
		function goB(){
			location.href = 'index2.html' ;
		}
		function shuax(){
			location.reload();
		}
	</script>
</html>
